package com.document;

import com.document.R;
import com.document.MainBrowserActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
//选择创建PDF文件的方式 通过本地文件和调用系统相机两种方式
public class SelectCreatWay extends MyActivity {
	private Button ByLocalFile;
	private Button ByCamera;
	private Button Exit;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.selectcreatway);
		ByLocalFile=(Button)findViewById(R.id.creatbylocalfile);
		ByCamera=(Button)findViewById(R.id.creatbycamera);
		Exit=(Button)findViewById(R.id.exit);
		
		Exit.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent i=new Intent();
				i.setClass(SelectCreatWay.this, MainActivity.class);
				startActivity(i);
				finish();
			}
   });
		ByLocalFile.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
			Intent i=new Intent();
			i.setClass(SelectCreatWay.this, Creat_By_LocalFile.class);
			startActivity(i);
			finish();
				
			}
		});
		ByCamera.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				 Intent intent = new Intent(SelectCreatWay.this,Creat_By_yCamera.class);
	                startActivity(intent);
	                finish();
				
			}
		});
		
	}}
